home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 2.toast / Technical Publications / webobjects / WebObjects_3.5 / Reference / ClientSideComponents / SupportClasses / next.wo.client.SimpleAssociatio < prev    next >
Encoding:
Text File  |  1998-04-07  |  3.9 KB  |  139 lines  |  [TEXT/R*ch]

  1. <!--NewPage-->
  2.  
  3. <html>
  4.  
  5. <head>
  6.  
  7. <!-- Generated by javadoc on Mon Oct 21 18:15:24  1996 -->
  8.  
  9. <a name="_top_"></a>
  10.  
  11. <title>
  12.  
  13.   Interface next.wo.client.SimpleAssociationDestination
  14.  
  15. </title>
  16.  
  17. </head>
  18.  
  19. <body bgcolor=#FFFFFF>
  20.  
  21. <pre>
  22.  
  23. <a href="Package-next.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-next.wo.client.html">This Package</a>  <a href="Package-next.wo.client.html">Previous</a>  <a href="Package-next.wo.client.html">Next</a> </pre>
  24.  
  25. <hr>
  26.  
  27. <h1>
  28.  
  29.   Interface next.wo.client.SimpleAssociationDestination
  30.  
  31. </h1>
  32.  
  33. <dl>
  34.  
  35.   <dt> public interface <b>SimpleAssociationDestination</b>
  36.  
  37.   <dt> extends <a href="http://www.javasoft.com/products/JDK/1.0.2/api/java.lang.Object.html#_top_">Object</a>
  38.  
  39.   <dt> extends <a href="next.util.KeyValueCoding.html#_top_">KeyValueCoding</a>
  40.  
  41. </dl>
  42.  
  43. The SimpleAssociationDestination interface allows applets that implement it to be the destinations of SimpleAssociations. By implementing these methods, plus the KeyValueCoding methods, the applet takes on the responsibilities of the Association object. The SimpleAssociation class simply passes calls to <b>valueForKey(</b>String<b>)</b>, <b>takeValueForKey(</b>Object, String<b>)</b>, and <b>keys()</b> along to its destination. Associations are required for the exchange of state and action information with the AppletGroupController, which handles communication with the server.
  44.  
  45. <dl>
  46.  
  47.     <dt> <b>See Also:</b>
  48.  
  49.     <dd> <a href="next.wo.client.Association.html#_top_">Association</a>, <a href="next.util.KeyValueCoding.html#_top_">KeyValueCoding</a>
  50.  
  51. </dl>
  52.  
  53. <hr>
  54.  
  55. <a name="index"></a>
  56.  
  57. <h2>
  58.  
  59.   <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
  60.  
  61. </h2>
  62.  
  63. <dl>
  64.  
  65.   <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
  66.  
  67.     <a href="#keys()"><b>keys</b></a>()
  68.  
  69.   <dd> Applets must implement this method to return the list (as a Vector object) of the keys for the state that they manage.
  70.  
  71.   <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
  72.  
  73.     <a href="#setAssociation(next.wo.client.Association)"><b>setAssociation</b></a>(Association)
  74.  
  75.   <dd> Implemented by applets so that they can store the Association object <i>assoc</i> (an instance of SimpleAssociation) so that later, when an action is triggered in the applet, they can send <b>invokeAction(</b>String<b>)</b> to that object.
  76.  
  77. </dl>
  78.  
  79. <a name="methods"></a>
  80.  
  81. <h2>
  82.  
  83.   <img src="images/methods.gif" width=151 height=38 alt="Methods">
  84.  
  85. </h2>
  86.  
  87. <a name="keys()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
  88.  
  89. <a name="keys"><b>keys</b></a>
  90.  
  91. <pre>
  92.  
  93.   public abstract <a href="http://www.javasoft.com/products/JDK/1.0.2/api/java.util.Vector.html#_top_">Vector</a> keys()
  94.  
  95. </pre>
  96.  
  97. <dl>
  98.  
  99.   <dd> Applets must implement this method to return the list (as a Vector object) of the keys for the state that they manage.
  100.  
  101. </dl>
  102.  
  103. <a name="setAssociation(next.wo.client.Association)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
  104.  
  105. <a name="setAssociation"><b>setAssociation</b></a>
  106.  
  107. <pre>
  108.  
  109.   public abstract void setAssociation(<a href="next.wo.client.Association.html#_top_">Association</a> assoc)
  110.  
  111. </pre>
  112.  
  113. <dl>
  114.  
  115.   <dd> Implemented by applets so that they can store the Association object <i>assoc</i> (an instance of SimpleAssociation) so that later, when an action is triggered in the applet, they can send <b>invokeAction(</b>String<b>)</b> to that object. This results in the invocation of the  associated action method in the server.
  116.  
  117. Note that even applets that do not have actions must implement this method, even if as a "null" method.
  118.  
  119.   <dl>
  120.  
  121.     <dt> <b>See Also:</b>
  122.  
  123.     <dd> <a href="next.wo.client.Association.html#invokeAction(String action)">invokeAction</a>
  124.  
  125.   </dl>
  126.  
  127. </dl>
  128.  
  129. <hr>
  130.  
  131. <pre>
  132.  
  133. <a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-next.wo.client.html">This Package</a>  <a href="Package-next.wo.client.html">Previous</a>  <a href="Package-next.wo.client.html">Next</a> </pre>
  134.  
  135. </body>
  136.  
  137. </html>
  138.  
  139.